import Vue from 'vue'
import App from './App.vue'

// 引入Vuex
import store from './store'
// 引入路由
import router from './router'

// 引入轮播图组件
import { Swiper, SwiperSlide } from 'vue-awesome-swiper'
// 引入swiper样式.
import 'swiper/css/swiper.min.css'
// 引入mock接口
import '@/mock/mockServer'
// 注册全局组件
import TypeNav from './components/typeNav/TypeNav.vue'
import Footer from '@/components/footer/Footer.vue'
import Header from '@/components/header/Header.vue'
import Detail from '@/pages/detail/Detail.vue'


Vue.component('TypeNav', TypeNav)
Vue.component('Footer', Footer)
Vue.component('Header', Header)
Vue.component('Detail', Detail)
Vue.component('Swiper', Swiper)
Vue.component('SwiperSlide', SwiperSlide)



Vue.config.productionTip = false


new Vue({
  render: h => h(App),
  beforeMount(){
    Vue.prototype.$bus = this
  },
  router,
  store,
}).$mount('#app')
